Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Ensure that only the visible columns are exported.#605

Closed
shammamah-zz wants to merge 3 commits into
devfrom
fix-export-columns
Closed

Ensure that only the visible columns are exported.#605
shammamah-zz wants to merge 3 commits into
devfrom
fix-export-columns

Conversation

@shammamah-zz

Copy link
Copy Markdown
Contributor

Closes #553.

@chriddyp
chriddyp temporarily deployed to dash-table-review-pr-605 September 30, 2019 16:12 Inactive
@shammamah-zz
shammamah-zz temporarily deployed to dash-table-review-pr-605 September 30, 2019 16:18 Inactive
const wb = createWorkbook(ws);
if (export_format === ExportFormat.Xlsx) {
XLSX.writeFile(wb, 'Data.xlsx', {bookType: 'xlsx', type: 'buffer'});
XLSX.writeFile(wb, 'Data.xlsx', { bookType: 'xlsx', type: 'buffer' });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These diffs come from the linter -- I can remove them if necessary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is redundant with what's been done here #592. See https://github.com/plotly/dash-table/blame/dev/src/dash-table/components/Export/utils.tsx#L59 for column filtering.

@shammamah-zz
shammamah-zz deleted the fix-export-columns branch September 30, 2019 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export option - data columns are in a different order to the header names

3 participants